package com.xlh.virtualization.domain;

import com.xlh.virtualization.constant.ContainerRoleEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author cheer
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ContainerCondition {

    /**
     * 用户Id
     */
    private Long userId;

    /**
     * 场景类型
     */
    private Integer contextType;

    /**
     * 场景Id
     */
    private Long contextId;

    /**
     * 镜像
     */
    private Image image;

    /**
     * cpu
     */
    private Integer cpu;

    /**
     * 内存
     */
    private Integer ram;

    /**
     * 是否需要gpu
     */
    private Boolean gpu;

    /**
     * gpu显存百分比
     */
    private String gpuPercent;

    /**
     * 容器角色
     */
    private ContainerRoleEnum containerRole;

    /**
     * 如果是从节点，从节点序号
     */
    private Integer roleNumber;

    /**
     * 挂载卷路径
     */
    private String volumePath;

    /**
     * 主机名
     */
    private String hostname;
}
